class ValidatorQualification {
    static async cuQualification(v) {
        console.log('cuQualification验证器',v)
        if (!v.name) {
            throw new global.errs.ParameterException('权限名必填')
        }
        if (/[^\w\d\u4e00-\u9fa5]+/ig.test(v.name)) {
            throw new global.errs.ParameterException('仅限数字,中英文')
        }
        console.log('cuQualification验证器全员通过')
    }

    static async rdQualification(qualificationId) {
        if (isNaN(qualificationId)) {
            throw new global.errs.ParameterException('qualificationId应为number类型')
        }
    }
}

module.exports=ValidatorQualification
